export default  {
	namespaced: true,
	
	// 数据
	state:() => ({
		address:JSON.parse(uni.getStorageSync('address') || '{}')
	}),
	// 方法
	mutations: {
		updateAddress(state,address) {
			state.address = address
		},
		saveAddressToStorage(state) {
			uni.setStorageSync('address',JSON.stringify(state.address))
		}
	},

	
}